Skip to content

ci: pin django-common-utils to the ref CI resolves - #142

Merged
phuocho-df merged 1 commit into
devfrom
ci/pin-common-utils-ref
Aug 17, 2026
Merged

ci: pin django-common-utils to the ref CI resolves#142
phuocho-df merged 1 commit into
devfrom
ci/pin-common-utils-ref

Conversation

@phuocho-df

Copy link
Copy Markdown
Contributor

pip install ...django-common-utils.git@dev resolves the branch tip at build time, several minutes after image-plan.py resolved that same branch and folded the result into this image's content cache key. A push to common-utils in between yields an image whose contents its own key does not describe — and since the key is what decides reuse, that image is served from cache indefinitely without anything triggering a rebuild.

ARG COMMON_UTILS_REF=dev lets CI pass the sha it already resolved, so the image holds the commit its key names. The default keeps docker build by hand working unchanged.

Paired with Space-DF/spacedf-backend#447, which emits common_utils_ref and passes it as COMMON_UTILS_REF. Order matters: this PR is inert on its own (nothing passes the arg yet), and #447 is inert until this merges and the parent bumps its gitlink for this submodule.

@phuocho-df
phuocho-df merged commit 48ff34d into dev Aug 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant